package ooday02;

public class OverrideDemo {
    public static void main(String[] args) {
        Student zg = new Student("张光",20,"北京","jsd2306","001");
        zg.sayHi();
        Teacher ll =new Teacher("李林",30,"四川",40000);
        ll.sayHi();
        Doctor ww = new Doctor("王五",50,"上海","主任医师");
        ww.sayHi();
    }
}
